using System;
using SisInfoLib;

//css_prescript com({6FBA474B-43AC-11CE-9A0E-00AA0062BB4C}, SisInfoLib);

class Script
{
	[STAThread]
	static public void Main(string[] args)
	{
		SysInfoClass sysInfo = new SysInfoClass();
		switch (sysInfo.ACStatus)
		{
			case 0:
				Console.WriteLine("Not using AC power");
				break;
			case 1:
				Console.WriteLine("Using AC power");
				break;
			default:
				Console.WriteLine("Unknown AC power status");
				break;
		}
		if (sysInfo.BatteryLifePercent != 255)
			Console.WriteLine("Battery life "+sysInfo.BatteryLifePercent+"%");
		else
			Console.WriteLine("Battery charge status not known");
	}
}

